package cn.shyouchi.wuguanjia.android.ui.event.checknum;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Eenie on 2016/11/18 at 16:18
 * Email: 472279981@qq.com
 * Des:
 */

public class CheckNumEntity {

    /**
     * resultCode : 0
     * resultMessage : [{"id":1,"info":[{"inspectionpoint":"1","inspectiontime":"16:14"},{"inspectionpoint":"4","inspectiontime":"16:14"}]},{"id":2,"info":[{"inspectionpoint":"1","inspectiontime":"16:14"}]},{"id":3,"info":[{"inspectionpoint":"1","inspectiontime":"16:36"},{"inspectionpoint":"4","inspectiontime":"16:36"}]}]
     */

    private int resultCode;
    private List<ResultMessageBean> resultMessage;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public List<ResultMessageBean> getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(List<ResultMessageBean> resultMessage) {
        this.resultMessage = resultMessage;
    }

    public static class ResultMessageBean implements Parcelable {
        /**
         * id : 1
         * info : [{"inspectionpoint":"1","inspectiontime":"16:14"},{"inspectionpoint":"4","inspectiontime":"16:14"}]
         */

        private int id;
        private List<InfoBean> info;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public List<InfoBean> getInfo() {
            return info;
        }

        public void setInfo(List<InfoBean> info) {
            this.info = info;
        }

        public static class InfoBean implements Parcelable {
            /**
             * inspectionpoint : 1
             * inspectiontime : 16:14
             */

            private int id;
            private String inspectiontime;
            private String inspectionname;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getInspectiontime() {
                return inspectiontime;
            }

            public void setInspectiontime(String inspectiontime) {
                this.inspectiontime = inspectiontime;
            }

            public String getInspectionname() {
                return inspectionname;
            }

            public void setInspectionname(String inspectionname) {
                this.inspectionname = inspectionname;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.id);
                dest.writeString(this.inspectiontime);
                dest.writeString(this.inspectionname);
            }

            public InfoBean() {
            }

            protected InfoBean(Parcel in) {
                this.id = in.readInt();
                this.inspectiontime = in.readString();
                this.inspectionname = in.readString();
            }

            public static final Creator<InfoBean> CREATOR = new Creator<InfoBean>() {
                @Override
                public InfoBean createFromParcel(Parcel source) {
                    return new InfoBean(source);
                }

                @Override
                public InfoBean[] newArray(int size) {
                    return new InfoBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeList(this.info);
        }

        public ResultMessageBean() {
        }

        protected ResultMessageBean(Parcel in) {
            this.id = in.readInt();
            this.info = new ArrayList<InfoBean>();
            in.readList(this.info, InfoBean.class.getClassLoader());
        }

        public static final Parcelable.Creator<ResultMessageBean> CREATOR = new Parcelable.Creator<ResultMessageBean>() {
            @Override
            public ResultMessageBean createFromParcel(Parcel source) {
                return new ResultMessageBean(source);
            }

            @Override
            public ResultMessageBean[] newArray(int size) {
                return new ResultMessageBean[size];
            }
        };
    }
}
